package com.tjut.oop.hol2;

public class Car extends Vehicle {
	// 新增属性：最载人数
    private int carloader;

	@Override
	public void run() {
		System.out.println("有一辆载着"+carloader+"人的"+getCarBrand()+"牌"+getCarColor()+
       		 "色汽车正在以"+getCarSpeed()+"Km/H的速度行驶");
	}

	public Car(int carloader,String carBrand, String carColor) {
		super(carBrand, carColor);
		this.carloader = carloader;
	}
    
    
}
